package com.itrustsolution.rms.entities;
// Generated 25 Mei 11 22:19:57 by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * RskRiskProbability generated by hbm2java
 */
@Entity
@Table(name="rsk_risk_probability"
    ,catalog="rms"
)
public class RskRiskProbability  implements java.io.Serializable {


     private Integer riskProbId;
     private String riskProbName;
     private String riskProbDesc;
     private boolean riskProbIsactive;
     private int riskProbValue;
     private Set<TckTicket> tckTickets = new HashSet(0);
     
    public RskRiskProbability() {
    }

	
    public RskRiskProbability(String riskProbName, String riskProbDesc, boolean riskProbIsactive, int riskProbValue) {
        this.riskProbName = riskProbName;
        this.riskProbDesc = riskProbDesc;
        this.riskProbIsactive = riskProbIsactive;
        this.riskProbValue = riskProbValue;
    }
    public RskRiskProbability(String riskProbName, String riskProbDesc, boolean riskProbIsactive, int riskProbValue, Set tckTickets) {
       this.riskProbName = riskProbName;
       this.riskProbDesc = riskProbDesc;
       this.riskProbIsactive = riskProbIsactive;
       this.riskProbValue = riskProbValue;
       this.tckTickets = tckTickets;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="RISK_PROB_ID", unique=true, nullable=false)
    public Integer getRiskProbId() {
        return this.riskProbId;
    }
    
    public void setRiskProbId(Integer riskProbId) {
        this.riskProbId = riskProbId;
    }
    
    @Column(name="RISK_PROB_NAME", nullable=false, length=20)
    public String getRiskProbName() {
        return this.riskProbName;
    }
    
    public void setRiskProbName(String riskProbName) {
        this.riskProbName = riskProbName;
    }
    
    @Column(name="RISK_PROB_DESC", nullable=false, length=50)
    public String getRiskProbDesc() {
        return this.riskProbDesc;
    }
    
    public void setRiskProbDesc(String riskProbDesc) {
        this.riskProbDesc = riskProbDesc;
    }
    
    @Column(name="RISK_PROB_ISACTIVE", nullable=false)
    public boolean isRiskProbIsactive() {
        return this.riskProbIsactive;
    }
    
    public void setRiskProbIsactive(boolean riskProbIsactive) {
        this.riskProbIsactive = riskProbIsactive;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="rskRiskProbability")
    public Set<TckTicket> getTckTickets() {
        return this.tckTickets;
    }
    
    public void setTckTickets(Set<TckTicket> tckTickets) {
        this.tckTickets = tckTickets;
    }
}


